package com.xxx.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author 作者
 * @since 2021-12-21 22:08:58
 */
@Data
@TableName("t_refund_info")
@ApiModel(value = "RefundInfo对象", description = "")
public class RefundInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("退款单id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("商户订单编号")
    @TableField("order_no")
    private String orderNo;

    @ApiModelProperty("商户退款单编号")
    @TableField("refund_no")
    private String refundNo;

    @ApiModelProperty("支付系统退款单号")
    @TableField("refund_id")
    private String refundId;

    @ApiModelProperty("原订单金额(分)")
    @TableField("total_fee")
    private Integer totalFee;

    @ApiModelProperty("退款金额(分)")
    @TableField("refund")
    private Integer refund;

    @ApiModelProperty("退款原因")
    @TableField("reason")
    private String reason;

    @ApiModelProperty("退款状态")
    @TableField("refund_status")
    private String refundStatus;

    @ApiModelProperty("申请退款返回参数")
    @TableField("content_return")
    private String contentReturn;

    @ApiModelProperty("退款结果通知参数")
    @TableField("content_notify")
    private String contentNotify;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;


    public static final String ID = "id";

    public static final String ORDER_NO = "order_no";

    public static final String REFUND_NO = "refund_no";

    public static final String REFUND_ID = "refund_id";

    public static final String TOTAL_FEE = "total_fee";

    public static final String REFUND = "refund";

    public static final String REASON = "reason";

    public static final String REFUND_STATUS = "refund_status";

    public static final String CONTENT_RETURN = "content_return";

    public static final String CONTENT_NOTIFY = "content_notify";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_TIME = "update_time";

}
